﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ConvertMediaPro.Controllers
{
    public class LoginController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult On(string username, string password)
        {
            if (username == "admin" && password == "admin")
            {
                return Redirect("/Category/Index");
            }
            return RedirectToAction("Index");
        }
    }
}